import request from '@/utils/request'

// 查询患者，一般对接第三方列表
export function listSickperson(query) {
  return request({
    url: '/manage/sickperson/list',
    method: 'get',
    params: query
  })
}

// 查询患者，一般对接第三方详细
export function getSickperson(sickPersonId) {
  return request({
    url: '/manage/sickperson/' + sickPersonId,
    method: 'get'
  })
}

// 新增患者，一般对接第三方
export function addSickperson(data) {
  return request({
    url: '/manage/sickperson',
    method: 'post',
    data: data
  })
}

// 修改患者，一般对接第三方
export function updateSickperson(data) {
  return request({
    url: '/manage/sickperson',
    method: 'put',
    data: data
  })
}

// 删除患者，一般对接第三方
export function delSickperson(sickPersonId) {
  return request({
    url: '/manage/sickperson/' + sickPersonId,
    method: 'delete'
  })
}
